/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="VIASACESSO")
public class ViasAcessoProteu implements Serializable{

    @Id
    @Column(name="VIA_ST_CODIGO")
    private String viaStCodigo;
    @Column(name="VIA_ST_DESCRICAO")
    private String viaStDescricao;

    public String getViaStCodigo() {
        return viaStCodigo;
    }

    public void setViaStCodigo(String viaStCodigo) {
        this.viaStCodigo = viaStCodigo;
    }

    public String getViaStDescricao() {
        return viaStDescricao;
    }

    public void setViaStDescricao(String viaStDescricao) {
        this.viaStDescricao = viaStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ViasAcessoProteu other = (ViasAcessoProteu) obj;
        if ((this.viaStCodigo == null) ? (other.viaStCodigo != null) : !this.viaStCodigo.equals(other.viaStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 71 * hash + (this.viaStCodigo != null ? this.viaStCodigo.hashCode() : 0);
        return hash;
    }


}
